package com.choosefine.it.basedata.model;

import java.io.Serializable;

import com.choosefine.it.base.Base;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 用户数据模型
 * 
 * @author guwenwei, 戚羿辰
 * @date 2016/11/20
 */
@ApiModel(value = "用户模型", description = "用户类型基础数据模型")
public class User extends Base implements Serializable
{

	private static final long	serialVersionUID	= 1L;

	@ApiModelProperty(value = "主键ID", required = true)
	private Integer				id;

	/**
	 * 用户编号
	 */
	@ApiModelProperty(value = "用户编号", required = true)
	private String				userCode;

	/**
	 * 用户唯一标识符
	 */
	@ApiModelProperty(value = "用户唯一标识符", required = true)
	private String				uuid;

	/**
	 * 用户名
	 */
	@ApiModelProperty(value = "用户名", required = true)
	private String				userName;

	/**
	 * 用户角色
	 */
	@ApiModelProperty(value = "用户角色", required = true)
	private Integer				userRole;

	/**
	 * 用户类型
	 */
	@ApiModelProperty(value = "用户类型（0个人，1公司）", required = true)
	private Integer				userType;
	/**
	 * 登录时间
	 */
	@ApiModelProperty(value = "用户唯一标识符", required = true)
	private Long				logintime;

	/**
	 * 手机号
	 */
	@ApiModelProperty(value = "手机号", required = false)
	private String				phone;

	/**
	 * 手机号
	 */
	@ApiModelProperty(value = "邮箱地址", required = false)
	private String				email;

	/**
	 * 账户类型
	 */
	@ApiModelProperty(value = "类型(1主账户 2子账户)", required = false)
	private Integer				type;
	
	/**
	 * 账户类型
	 */
	@ApiModelProperty(value = "账户姓名", required = false)
	private String				unitName;

	@ApiModelProperty(value = "是否有效", dataType = "Integer")
	private Integer				isValid				= 0;
	
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUuid() {
		return uuid;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid == null ? null : uuid.trim();
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Integer getUserRole() {
		return userRole;
	}

	public void setUserRole(Integer userRole) {
		this.userRole = userRole;
	}

	public Long getLogintime() {
		return logintime;
	}

	public void setLogintime(Long logintime) {
		this.logintime = logintime;
	}

	public Integer getUserType() {
		return userType;
	}

	public void setUserType(Integer userType) {
		this.userType = userType;
	}

	public String getUserCode() {
		return userCode;
	}

	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getUnitName() {
		return unitName;
	}

	public void setUnitName(String unitName) {
		this.unitName = unitName;
	}

	public Integer getIsValid() {
		return isValid;
	}

	public void setIsValid(Integer isValid) {
		this.isValid = isValid;
	}

}